projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b58db
)
; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change.
author
Po Lu
<luangruo@yahoo.com>
Mon, 7 Mar 2022 11:56:23 +0000
(19:56 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 7 Mar 2022 11:56:23 +0000
(19:56 +0800)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 1befa97fd14bba95e0a9610f4ce98a0fa53749e7..76222d6256f5f128fa05671ab6781b54d3e638ea 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-3878,10
+3878,10
@@
x_alloc_nearest_color_1 (Display *dpy, Colormap cmap, XColor *color)
* ((color->blue >> 8) - (cells[x].blue >> 8))));
if (trial_delta < nearest_delta)
{
- XColor temp;
temp.red = cells[x].red;
temp.green = cells[x].green;
temp.blue = cells[x].blue;
+
nearest = x;
nearest_delta = trial_delta;
}